/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.kth.lwr.jeat.samples.onsitetreatment.producers;

import javax.measure.unit.SI;
import javax.measure.unit.Unit;
import org.jscience.physics.amount.Amount;
import se.kth.lwr.jeat.core.Inventoriable;
import se.kth.lwr.jeat.core.Inventory;
import se.kth.lwr.jeat.core.InventoryDataSource;
import se.kth.lwr.jeat.core.EnergyCategory;
import se.kth.lwr.jeat.utils.ProductionSupport;
import se.kth.lwr.jeat.samples.onsitetreatment.SimpleProduction;

/**
 *
 * @author davidev
 */
public class PVCProduction extends SimpleProduction {
    
    private PVCProduction(ProductionSupport support){
        super(support);
    }
    
    public static PVCProduction getInstance(){
        return new PVCProduction(new ProductionSupport("PVC", pvcInventoryDataSource, SI.KILOGRAM));
    }
    
   
//Data sources
    /**
     *
     * Resource use for general production of poly venyl cloride PVC
     *
     */
    public static final InventoryDataSource pvcInventoryDataSource = new InventoryDataSource("pvcProductionEmissions",
            "Resource use for general production of poly venyl cloride PVC, Bengtson (1997)",
            new Inventoriable() {
                
                @Override
                public Inventory getInventory() {
                    Inventory retval = Inventory.emptyInventory();
                    retval.addEnergyUse(EnergyCategory.ELECTRICAL, Amount.valueOf(8.6, Unit.valueOf("MJ/kg")));
                    retval.addEnergyUse(EnergyCategory.FOSSIL, Amount.valueOf(25.58, Unit.valueOf("MJ/kg")));
                    return retval;
                }
            });
}
